﻿

using System.Collections.Generic;

namespace ErpToCrm.Model
{
    public class CrmQueryResult
    {
        public bool result { get; set; }
        public string returnInfo { get; set; }
        public string returnCode { get; set; }
        public List<CrmQueryResultData> data { get; set; }
    }

    public class CrmInsertResult
    {
        public bool result { get; set; }
        public string returnInfo { get; set; }
        public string returnCode { get; set; }
        public List<CrmInsertResultData> data { get; set; }
    }

    public class CrmInsertResultData
    {
        public List<CrmInsertData> ids { get; set; }
    }

    public class CrmInsertData
    {
        public string id { get; set; }
    }

    public class CrmQueryResultData
    {
        public string id { get; set; }
        public string CCObjectAPI { get; set; }
    }

    public class CrmUser
    {
        public bool result { get; set; }
        public string returnInfo { get; set; }
        public string binding { get; set; }
    }

/*    public class CrmInsertResult
    {
        public bool result { get; set; }
        public string returnInfo { get; set; }
        public string returnCode { get; set; }

    }*/

    public class ErpResult<T>
    {
        public bool result { get; set; }

        public List<T> data { get; set; }
    }

    public class CrmResult
    {
        public bool result { get; set; }

        public List<CrmDataXS> data { get; set; }
    }
}
